package top.air.backend.task.model.query;

import java.io.Serial;
import java.io.Serializable;
import java.time.*;

import lombok.Data;

import io.swagger.v3.oas.annotations.media.Schema;

import top.continew.starter.data.core.annotation.Query;
import top.continew.starter.data.core.enums.QueryType;

/**
 * 试验工作量查询条件
 *
 * @author 文艺倾年
 * @since 2025/03/25 17:33
 */
@Data
@Schema(description = "试验工作量查询条件")
public class TestLogQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 开始时间
     */
    @Schema(description = "开始时间")
    @Query(type = QueryType.EQ)
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    @Schema(description = "结束时间")
    @Query(type = QueryType.EQ)
    private LocalDateTime endTime;

    /**
     * 登记项目
     */
    @Schema(description = "登记项目")
    @Query(type = QueryType.EQ)
    private Integer registerStatus;

    /**
     * 发动机是否故障
     */
    @Schema(description = "发动机是否故障")
    @Query(type = QueryType.EQ)
    private Integer isFault;

    /**
     * 试验名称
     */
    @Schema(description = "试验名称")
    @Query(type = QueryType.EQ)
    private String name;

    /**
     * 试验任务ID
     */
    @Schema(description = "试验任务ID")
    @Query(type = QueryType.EQ)
    private Long taskId;
}